package com.thirteen.app.service;

import com.thirteen.app.dto.QuestionAnswerDto;
import com.thirteen.app.dto.QuestionAnswerUpdateDto;
import com.thirteen.app.entity.Answer;
import com.thirteen.app.entity.QuestionRepository;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionRepositoryService {

//    zql&ar

    //添加题库
    boolean insert(QuestionRepository questionrepository);

    //向指定题库添加题目
    int createQu(String content, String analysis, Integer repositoryId, Integer questionType, Integer answerCount, String solution, List<Answer> list);

    //根据题目类型查询指定题库的题目
    List<QuestionAnswerDto> selectQuByType(Integer repositoryId, Integer[] questionType);

    //删除指定题库的指定题目
    int updateRepositoryQuestion(Integer questionId, Integer repositoryId);

    //根据题库名称查询题库
    List<QuestionRepository> selectAllQsBank(String title);

    Boolean updateQuestion(QuestionAnswerUpdateDto questionAnswerUpdateDto);
}
